package service.impl;

import java.util.List;

import persistence.dao.TdfkfaDictCityDAO;
import persistence.dao.TdfkfaDictCredentialDAO;
import persistence.dao.TdfkfaDictExperttypeDAO;
import persistence.dao.TdfkfaDictKcfsDAO;
import persistence.dao.TdfkfaDictKzDAO;
import persistence.dao.TdfkfaDictProvinceDAO;
import persistence.dao.TdfkfaDictQualificationDAO;
import persistence.dao.TdfkfaDictTitleDAO;
import persistence.dao.TdfkfaDictUnitkindDAO;
import persistence.dao.TdfkfaDictXmxzDAO;
import persistence.model.TdfkfaDictCity;
import persistence.model.TdfkfaDictCityExample;
import persistence.model.TdfkfaDictCredential;
import persistence.model.TdfkfaDictCredentialExample;
import persistence.model.TdfkfaDictExperttype;
import persistence.model.TdfkfaDictExperttypeExample;
import persistence.model.TdfkfaDictKcfs;
import persistence.model.TdfkfaDictKcfsExample;
import persistence.model.TdfkfaDictKz;
import persistence.model.TdfkfaDictKzExample;
import persistence.model.TdfkfaDictProvince;
import persistence.model.TdfkfaDictProvinceExample;
import persistence.model.TdfkfaDictQualification;
import persistence.model.TdfkfaDictQualificationExample;
import persistence.model.TdfkfaDictTitle;
import persistence.model.TdfkfaDictTitleExample;
import persistence.model.TdfkfaDictUnitkind;
import persistence.model.TdfkfaDictUnitkindExample;
import persistence.model.TdfkfaDictXmxz;
import persistence.model.TdfkfaDictXmxzExample;
import service.DictInfoService;

public class DictInfoServiceImpl implements DictInfoService {

    private TdfkfaDictKcfsDAO tdfkfaDictKcfsDAO;

    private TdfkfaDictKzDAO tdfkfaDictKzDAO;

    private TdfkfaDictXmxzDAO tdfkfaDictXmxzDAO;

    private TdfkfaDictProvinceDAO tdfkfaDictProvinceDAO;

    private TdfkfaDictCityDAO tdfkfaDictCityDAO;

    private TdfkfaDictQualificationDAO tdfkfaDictQualificationDAO;

    private TdfkfaDictTitleDAO tdfkfaDictTitleDAO;

    private TdfkfaDictExperttypeDAO tdfkfaDictExperttypeDAO;

    private TdfkfaDictUnitkindDAO tdfkfaDictUnitkindDAO;

    private TdfkfaDictCredentialDAO tdfkfaDictCredentialDAO;

    public List<TdfkfaDictKcfs> getKCFSList() {

        List<TdfkfaDictKcfs> list = tdfkfaDictKcfsDAO.selectByExample(new TdfkfaDictKcfsExample());
        return list;
    }

    public List<TdfkfaDictKz> getKZList() {
        List<TdfkfaDictKz> list = tdfkfaDictKzDAO.selectByExample(new TdfkfaDictKzExample());
        return list;
    }

    public List<TdfkfaDictXmxz> getXMXZList() {
        List<TdfkfaDictXmxz> list = tdfkfaDictXmxzDAO.selectByExample(new TdfkfaDictXmxzExample());
        return list;
    }

    public List<TdfkfaDictProvince> getProvinceList() {
        List<TdfkfaDictProvince> list = tdfkfaDictProvinceDAO.selectByExample(new TdfkfaDictProvinceExample());
        return list;
    }

    public List<TdfkfaDictCity> getCityList(Integer provinceId) {
        TdfkfaDictCityExample example = new TdfkfaDictCityExample();
        example.createCriteria().andPidEqualTo(provinceId);
        List<TdfkfaDictCity> list = tdfkfaDictCityDAO.selectByExample(example);
        return list;
    }

    public List<TdfkfaDictQualification> getQualificationList() {
        List<TdfkfaDictQualification> list = tdfkfaDictQualificationDAO.selectByExample(new TdfkfaDictQualificationExample());
        return list;
    }

    public List<TdfkfaDictTitle> getTitleList() {
        List<TdfkfaDictTitle> list = tdfkfaDictTitleDAO.selectByExample(new TdfkfaDictTitleExample());
        return list;
    }

    public List<TdfkfaDictExperttype> getExpertTypeList() {
        List<TdfkfaDictExperttype> list = tdfkfaDictExperttypeDAO.selectByExample(new TdfkfaDictExperttypeExample());
        return list;
    }
    
    public List<TdfkfaDictUnitkind> getUnitKindList() {
        List<TdfkfaDictUnitkind> list = tdfkfaDictUnitkindDAO.selectByExample(new TdfkfaDictUnitkindExample());
        return list;
    }
    
    public List<TdfkfaDictCredential> getCredentialList() {
        List<TdfkfaDictCredential> list = tdfkfaDictCredentialDAO.selectByExample(new TdfkfaDictCredentialExample());
        return list;
    }

    public void setTdfkfaDictKcfsDAO(TdfkfaDictKcfsDAO tdfkfaDictKcfsDAO) {
        this.tdfkfaDictKcfsDAO = tdfkfaDictKcfsDAO;
    }

    public void setTdfkfaDictKzDAO(TdfkfaDictKzDAO tdfkfaDictKzDAO) {
        this.tdfkfaDictKzDAO = tdfkfaDictKzDAO;
    }

    public void setTdfkfaDictXmxzDAO(TdfkfaDictXmxzDAO tdfkfaDictXmxzDAO) {
        this.tdfkfaDictXmxzDAO = tdfkfaDictXmxzDAO;
    }

    public void setTdfkfaDictProvinceDAO(TdfkfaDictProvinceDAO tdfkfaDictProvinceDAO) {
        this.tdfkfaDictProvinceDAO = tdfkfaDictProvinceDAO;
    }

    public void setTdfkfaDictCityDAO(TdfkfaDictCityDAO tdfkfaDictCityDAO) {
        this.tdfkfaDictCityDAO = tdfkfaDictCityDAO;
    }

    public void setTdfkfaDictQualificationDAO(TdfkfaDictQualificationDAO tdfkfaDictQualificationDAO) {
        this.tdfkfaDictQualificationDAO = tdfkfaDictQualificationDAO;
    }

    public void setTdfkfaDictTitleDAO(TdfkfaDictTitleDAO tdfkfaDictTitleDAO) {
        this.tdfkfaDictTitleDAO = tdfkfaDictTitleDAO;
    }

    public void setTdfkfaDictExperttypeDAO(TdfkfaDictExperttypeDAO tdfkfaDictExperttypeDAO) {
        this.tdfkfaDictExperttypeDAO = tdfkfaDictExperttypeDAO;
    }

    public void setTdfkfaDictUnitkindDAO(TdfkfaDictUnitkindDAO tdfkfaDictUnitkindDAO) {
        this.tdfkfaDictUnitkindDAO = tdfkfaDictUnitkindDAO;
    }

    public void setTdfkfaDictCredentialDAO(TdfkfaDictCredentialDAO tdfkfaDictCredentialDAO) {
        this.tdfkfaDictCredentialDAO = tdfkfaDictCredentialDAO;
    }

}
